#pragma once

#include "form/IWindow.h"

template<typename T>
class Window : public T
{
public:
	BEGIN_DEFINE_CLASS(CLASSID_NULL)
		DEFINE_INTERFACE_ENTRY(IWindow)
	END_DEFINE_CLASS()

	Window(){m_icon = NULL; m_text=L"";}
	virtual ~Window(){}

	virtual void SetText(const String& text)
	{
		m_text = text;
	}
	virtual void SetIcon(vSysICon icon)
	{
		m_icon = icon;
	}
	virtual const String& GetText()
	{
		return m_text;
	}
	virtual vSysICon GetIcon()
	{
		return m_icon;
	}

private:
	vSysICon m_icon;
	String m_text;
};

